package com.example.easybuy.mappers;

import com.example.easybuy.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface ProductMapper {
    List<Product> byPage(Map<String, Object> map);

    int delPro(Map<String, Object> map);

    int addPro(Map<String, Object> map);

    int updatePro(Map<String, Object> pro);

    Product getPro(Map<String, Object> map);
}